<?php

namespace Intervention\Image\Gd\Commands;

use Intervention\Image\Commands\AbstractCommand;

class ResolutionCommand extends AbstractCommand
{
    public function execute($image)
    {
        $x = $this->argument(0)->type('int')->required()->value();
        $y = $this->argument(1)->type('int')->value();
        imageresolution($image->getCore(), $x, $y);
        return true;
    }
}
